import { Modal, ModalFuncProps } from 'ant-design-vue';
import { createVNode } from 'vue';

export const confirm = (props: ModalFuncProps): any => {
	return Modal.confirm({
		icon: createVNode('i', { class: 'iconfont icon-alert-fill' }),
		...props
	});
};

export const info = (props: ModalFuncProps): any => {
	return Modal.info({
		icon: createVNode('i', { class: 'iconfont icon-alert-fill' }),
		okButtonProps: { type: 'default' },
		...props
	});
};
